Long numbers, whether integral or floating-point, can be difficult to read and understand at a glance. This can lead to mistakes when reading,
writing, or maintaining code. For example, it’s easy to miscount the number of zeros in a large number or misplace a decimal point. These mistakes can
introduce subtle bugs that are hard to detect and debug.
To improve readability, Rust allows the use of underscores as visual separators in numeric literals. By grouping digits into more manageable
chunks, numbers become easier to read and understand.
This practice reduces the likelihood of errors and makes the code more maintainable.